<script setup>
import FanList from '..';

const aaa = () => {
  alert('出错了？');
};
const onLoad = () => alert('触底了呀');
</script>

<template>
  <demo-block title="基础用法">
    <div ref="bbb">
      <FanList style="margin-left: 15px" @load="onLoad">
        <div style="height: 1000px; background: blue; color: #fff">
          滑呀滑 滑倒外婆家
        </div>
      </FanList>
    </div>
  </demo-block>

  <demo-block title="基础用法">
    <FanList style="margin-left: 15px" status="noMore"></FanList>
  </demo-block>

  <demo-block title="基础用法">
    <FanList
      style="margin-left: 15px"
      status="error"
      @error-click="aaa"
    ></FanList>
  </demo-block>
</template>
